package cn.codeartist.springboot.component.context;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 全局接口
 */
@ResponseBody
public class GlobalController {

    /**
     * 项目心中检测接口
     */
    @GetMapping("heartbeat")
    public String heartbeat() {
        return "OK";
    }
}
